/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.tedu.mall.common.pojo.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("admin后台账号查询搜索条件DTO")
public class AdminQueryDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 查询用户名模糊
     */
    @ApiModelProperty(
        value = "查询用户名模糊",
        name = "username",
        example = "admin")
    private String username;
    /**
     * 查询创建时间起始日期
     */
    @ApiModelProperty(
        value = "查询创建时间起始日期",
        name = "startCreateTime",
        example = "2021-12-02 17:59:27")
    private LocalDateTime startCreateTime;
    /**
     * 创建结束日期
     */
    @ApiModelProperty(
        value = "创建结束日期",
        name = "endCreateTime",
        example = "2025-12-02 17:59:27")
    private LocalDateTime endCreateTime;
    /**
     * 起始修改日期
     */
    @ApiModelProperty(
        value = "起始修改日期",
        name = "startModifiedTime",
        example = "2021-12-02 17:59:27")
    private LocalDateTime startModifiedTime;
    /**
     * 结束修改日期
     */
    @ApiModelProperty(
        value = "结束修改日期",
        name = "endModifiedTime",
        example = "2025-12-02 17:59:27")
    private LocalDateTime endModifiedTime;
    /**
     * 排序字段
     */
    @ApiModelProperty(
        value = "排序字段",
        name = "orderField",
        example = "gmtModified")
    private String orderField;
    /**
     * 排序规则 desc asc 点一次值就贬义词
     */
    @ApiModelProperty(
        value = "自定义排序号",
        name = "sort")
    private Integer sort;
    @ApiModelProperty(
        value = "排序规则 desc asc 点一次值就贬义词",
        name = "orderRule",
        example = "desc")
    private String orderRule;
    /**
     * 分页页数
     */
    @ApiModelProperty(
        value = "分页页数",
        name = "page",
        example = "1")
    private Integer page;
    /**
     * 分页条数
     */
    @ApiModelProperty(
        value = "分页条数",
        name = "pageSize",
        example = "6")
    private Integer pageSize;

    @Override
    public String toString() {
        return "AdminQueryDTO{" +
            "adminName='" + username + '\'' +
            ", startCreateTime=" + startCreateTime +
            ", endCreateTime=" + endCreateTime +
            ", startModifiedTime=" + startModifiedTime +
            ", endModifiedTime=" + endModifiedTime +
            ", orderField='" + orderField + '\'' +
            ", orderRule='" + orderRule + '\'' +
            ", page=" + page +
            ", pageSize=" + pageSize +
            '}';
    }
}
